//
//  MMCommodityCell.m
//  01-瀑布流
//
//  Created by DWE_KJ on 2016/12/1.
//  Copyright © 2016年 小码哥. All rights reserved.
//

#import "MMCommodityCell.h"
#import "UIImageView+WebCache.h"

@interface MMCommodityCell()
@property (weak, nonatomic) IBOutlet UIImageView *imageViwe;
@property (weak, nonatomic) IBOutlet UILabel *label;

@end

@implementation MMCommodityCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    // Initialization code
}

- (void)setCommodityModel:(MMCommodityModel *)commodityModel
{
    _commodityModel = commodityModel;
    [self.imageViwe sd_setImageWithURL:[NSURL URLWithString:commodityModel.img] placeholderImage:[UIImage imageNamed:@"loading"]];
    
    // 2.价格
    self.label.text = commodityModel.price;
}



@end
